package po;


import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * <p>  
 *  TbDynamicComment 动态评论表
 * </p>
 * @author  XieTao
 * @date 2020-04-10 
 */


public class TbDynamicComment  implements Serializable {


	/**
	 * 评论ID
	 */
	private String cid;

	/**
	 * 评论内容
	 */
	private String content;

	/**
	 * 所属动态ID
	 */
	private String dynamicId;

	/**
	 * 评论用户ID
	 */
	private String userId;

	/**
	 * 父评论ID
	 */
	private String parent;

	/**
	 * 被评论id
	 */
	private String commented;

	/**
	 * 是否删除
	 */
	private Integer isDelete;

	/**
	 * 发布日期
	 */
	private Date createTime;

	public String getCid() {
		return cid;
	}

	public void setCid(String cid) {
		this.cid = cid;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getDynamicId() {
		return dynamicId;
	}

	public void setDynamicId(String dynamicId) {
		this.dynamicId = dynamicId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getParent() {
		return parent;
	}

	public void setParent(String parent) {
		this.parent = parent;
	}

	public String getCommented() {
		return commented;
	}

	public void setCommented(String commented) {
		this.commented = commented;
	}

	public Integer getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(Integer isDelete) {
		this.isDelete = isDelete;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Override
	public boolean equals(Object o) {
		if (this == o) {
			return true;
		}
		if (!(o instanceof TbDynamicComment)) {
			return false;
		}
		TbDynamicComment that = (TbDynamicComment) o;
		return Objects.equals(cid, that.cid) &&
				Objects.equals(content, that.content) &&
				Objects.equals(dynamicId, that.dynamicId) &&
				Objects.equals(userId, that.userId) &&
				Objects.equals(parent, that.parent) &&
				Objects.equals(commented, that.commented) &&
				Objects.equals(isDelete, that.isDelete) &&
				Objects.equals(createTime, that.createTime);
	}

	@Override
	public int hashCode() {
		return Objects.hash(cid, content, dynamicId, userId, parent, commented, isDelete, createTime);
	}

	@Override
	public String toString() {
		return "TbDynamicComment{" +
				"cid='" + cid + '\'' +
				", content='" + content + '\'' +
				", dynamicId='" + dynamicId + '\'' +
				", userId='" + userId + '\'' +
				", parent='" + parent + '\'' +
				", commented='" + commented + '\'' +
				", isDelete=" + isDelete +
				", createTime=" + createTime +
				'}';
	}
}
